<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../reset.css">
    <link rel="stylesheet" href="../fa/css/all.css">
    <style>
        /*.clearfix ::before, .clearfix::after {*/
        /*    content: '';*/
        /*    display: table;*/
        /*    clear: both;*/
        /*}*/

        body {
            font: 12px/1.5 "微软雅黑";
        }

        .top-nar-wrapper {
            line-height: 30px;
            background-color: #ddd;
            height: 30px;
        }

        .top-bar {
            background-color: #bfa;
            width: 1190px;
            margin: 0 auto;

            position: relative;
        }

        .top-bar a, .shortcut span, .shortcut i {
            color: #999;
        }

        .top-bar a:hover, .top-bar .highlight {
            color: #f10215;
        }

        .top-bar a {
            text-decoration: none;
        }

        .location {
            float: left;
            position: relative;
        }

        .current-city {
            padding: 0 10px;
            position: relative;
        }

        .current-city:hover {
            background-color: #fff;
            border: solid 1px rgb(204, 204, 204);
            border-bottom: 0;

        }

        .location .city-list {
            width: 320px;
            height: 436px;
            background-color: #ffffff;
            border: solid 1px rgb(204, 204, 204);
            display: none;
            box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
            /*脱离文档流，不要影响父元素的大小*/
            position: absolute;
        }

        /*当鼠标移入 location city-list显示 */
        .location:hover .city-list {
            display: block;
            top: 30px;
        }

        .location:hover .current-city{
            padding-bottom: 1px;
            z-index: 1;
        }

        .location .fas {
            font-size: 12px;
            color: #f10215;
        }

        .shortcut {
            float: right;
        }

        .shortcut .line {
            width: 1px;
            height: 10px;
            background-color: #999;
            margin: 10px 12px;
        }

        .shortcut li {
            float: left;
        }

    </style>
</head>
<body>
<div class="top-nar-wrapper">
    <div class="top-bar">
        <!--左侧菜单-->
        <div class="location">
            <div class="current-city">
                <i class="fas fa-map-marker-alt"></i>
                <a href="javascript:;">北京</a>
            </div>
            <div class="city-list">

            </div>
        </div>
        <!--右侧菜单-->
        <ul class="shortcut">
            <li>
                <a href="javascript:;">您好，请登录</a>
                <a class="highlight" href="javascript:;">免费注册</a>
            </li>
            <!--分割线-->
            <li class="line"></li>
            <li><a href="javascript:;">我的订单</a></li>

            <li class="line"></li>
            <li>
                <a href="javascript:;">我的京东</a>
                <i class="fas fa-angle-down"></i>
            </li>

            <li class="line"></li>
            <li><a href="javascript:;">京东会员</a></li>

            <li class="line"></li>
            <li><a class="highlight" href="javascript:;">企业采购</a><i class="fas fa-angle-down"></i></li>

            <li class="line"></li>
            <li><span>客户服务</span><i class="fas fa-angle-down"></i></li>

            <li class="line"></li>
            <li><span>网站导航</span><i class="fas fa-angle-down"></i></li>

            <li class="line"></li>
            <li><span>手机京东</span></li>
        </ul>
    </div>
</div>
</body>
</html>